<?php
/**
 * Short description of purpose of file
 *
 * @package validation
 * @copyright (C) 2003 by the Xaraya Development Team.
*/
/**
 * notempty Validation Function
 */
function variable_validations_notempty (&$subject, $parameters, $supress_soft_exc, &$name)
{
    if (empty($subject)) {
        if ($name != '')
            $msg = xarML('Variable #(1) should not be empty: "#(2)"', $name, '$subject');
        else
            $msg = xarML('Should not be empty: "#(1)"', '$subject');
        if (!$supress_soft_exc) throw new Exception($msg);
        return false;
    }
    return true;
}
?>